import Request from '@/utils/request';

/**
 * 经典案例api
 *
 * @author liuxue
 * @date 2022/01/10 15:10
 */
export class ClassicCaseApi {
  /**
   * 新增
   *
   * @author liuxue
   * @date 2022/01/10 15:10
   */
  static add(params) {
    return Request.post('/classicCase/add', params);
  }

  /**
   * 修改
   *
   * @author liuxue
   * @date 2022/01/10 15:10
   */
  static edit(params) {
    return Request.post('/classicCase/edit', params);
  }

  /**
   * 删除
   *
   * @author liuxue
   * @date 2022/01/10 15:10
   */
  static delete(params) {
    return Request.post('/classicCase/delete', params);
  }

  /**
   * 详情
   *
   * @author liuxue
   * @date 2022/01/10 15:10
   */
  static detail(params) {
    return Request.getAndLoadData('/classicCase/detail', params);
  }

  static changeStatus(params) {
    return Request.post('/classicCase/changeStatus', params);
  }
  
}
